forum

home / developersection / forums / is possible to create property of static class?

Is Possible to create property of static class?

Manoj Bhatt 1617 13-Jan-2016
Hello
I have a static class :

       public static class Demo
        {
            public const string Complete = "Complete";
            public const string Active = "Active";
            public const string Current = "Current";
        }

 

and I want to have a property that will present an occurrence of this static class in another class DemoImplement.

 

    public class DemoImplement
        {
            public string Code { get; set; }
            public string Title { get; set; }
            public string  Status { get; set; }
            public string Category { get; set; }
        }

Thanks in advance.     

c# c#  .net 
Updated on 13-Jan-2016
Manoj Bhatt

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By